package com.atguigu.yygh.cmn.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author mgx
 * @version 1.0
 * @description: TODO
 * @date 2022/8/23 21:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    @ExcelProperty(value = "学生编号")
    @ColumnWidth(value = 20)
    private int sid;

    @ExcelProperty(value = "学生姓名")
    @ColumnWidth(value = 50)
    private String name;

    @ExcelProperty(value = "学生年龄")
    @ColumnWidth(value = 50)
    private int age;

    @ExcelProperty(value = "学生性别")
    @ColumnWidth(value = 30)
    private boolean gender;
}
